.header {
  position: relative;
  width: 100%;
  height: 100vh;
  /* background-color: beige; */
  background-size: cover;
  background-position: center;

  .clock {
    width: 200px;
    height: 200px;
    background-size: 100% 100%;
    position: relative;
    top: 15%;
    left: 25%;
    border-radius: 50%;

    img {
      position: absolute;
      top: 50%;
      left: 50%;
      height: 6px;
      transform: translateY(-50%) scale(0.5);
      transform-origin: 0px 0px;
      border-radius: 25%;
      box-shadow: 0 2px 3px rgba(0, 0, 0, .15);
    }

    .hours {
      transform: rotate(270deg) translateY(-50%) scale(0.5);
    }
    
    .minute {
      transform: rotate(270deg) translateY(-50%) scale(0.5);
    }
    
    .second {
      transform: rotate(270deg) translateY(-50%) scale(0.5);
    }
    
     .dian {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 10px;
      height: 10px;
      transform: translateX(-6px) translateY(-5px);
      z-index: 2;
    }
  }
  
  .type {
    margin: 0;
    position: relative;
    top: 72%;
    left: 15%;
    width: 443px;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    font-size: 35px;

    &::before,
    &::after {
      content: '';
      display: inline-block;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      transition: 0.3s;
    }
    
    &::before {
      background-color: #f0f0f0;
      animation: typing 3s steps(12) forwards;
    }
    
    &::after {
      border-left: 2px solid #000000;
      animation: typing 3s steps(12) forwards,
        bb 1s steps(18) infinite;
    }
  }
  
  @keyframes typing {
    to {
      transform: translateX(441px);
    }
  }
  
  @keyframes bb {
    50% {
      opacity: 0;
    }
  
    100% {
      opacity: 1;
    }
  }
}

/* 波浪线1 */
.custom-shape-divider-top-1631255634 {
  /* position: absolute; */
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: -1;
}

.custom-shape-divider-top-1631255634 svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 107px;
  transform: rotateY(180deg);
}

.custom-shape-divider-top-1631255634 .shape-fill {
  fill: #f0f0f0;
}
// 重写导航栏
#index_nav {
  position: absolute;
  z-index: 2;
  background-color: transparent;

  &:hover {
    background-color: #F9F8F6;
    box-shadow: 0 5px 5px rgba(0, 0, 0, .05);
    li {
      transform: translateX(0);
    }
  }

  ul {
    opacity: 0; 

    li {
      transform: translateX(50px);
    }
  }

  &:hover ul {
    opacity: 1;
  }
}
// 内容部分
main {
  min-height: 800px;
  position: relative;

  .index_container {
    display: flex;
    align-items: flex-start;

    .main_left {
      flex: 7.5;

      .main_more {
        margin-top: 10px;
        padding: 20px;
        background-color: #fff;
        font-size: 30px;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, .15);
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 5px;
        transition: 0.5s;

        span {
          margin-left: 10px;
          font-size: 40px;
          font-weight: 600;
        }

        &:hover {
          background-color: var(--block);
          color: #F9F8F6;
        }
      }
    }
  }
}
#my {
  flex: 2.5;
  margin-left: 30px;
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background: url(http://localhost/images/my_box.jpg) no-repeat;
    background-size: 100%;
    opacity: 0.8;
    min-height: 300px;
    border-radius: 5px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, .3);
    border: 5px solid #fff;
  }

  .my_header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    color: #333;
    opacity: 0.9;
    min-width: 260px;
    height: 300px;
    transform: translateY(-120px);
    position: relative;

    img {
      width: 50px;
      height: 50px;
    }

    h2 {
      margin-left: 3px;
    }

    p {
      padding: 0 40px;
      position: absolute;
      bottom: 10px;
      font-size: 12px;
      opacity: 0;
      transition: 1s;
    }

    &:hover p{
      opacity: 1;
    }
  }
}
